<template>
    <div>
        <section class="part" v-for="(part, partIndex) in tableList" :key="partIndex">
            <span class="tit">{{part.title}}</span>
            <el-table :data="part.data" border>
                <el-table-column v-for="(item, index) in part.cols" :key="index" :prop='item.prop' :label="item.label"></el-table-column>
            </el-table>
        </section>
    </div>
</template>
<script>
export default {
    name: 'business',
    data() {
        return {
            tableList: [
                {
                    title: '所属行业',
                    cols: [
                        {label : '行业大类', prop:'address'}, {label : '行业大类编码', prop:'code'}, {label : '行业门类', prop:'phone'},
                        {label : '行业门类编号', prop:'phone'}
                    ],
                    data: []
                },
                {
                    title: '主要成员',
                    cols: [
                        {label : '成员', prop:'name'}, {label : '职务', prop:'job'}, {label : '更新日期', prop:'address'}
                    ],
                    data: []
                },
                {
                    title: '股东信息',
                    cols: [
                        {label : '股东', prop:'name'}, {label : '股东类型', prop:'bank'}, {label : '持股比例（%）', prop:'account'},
                        {label : '认缴金额（万）', prop:'remark'}
                    ],
                    data: []
                },
                {
                    title: '分支机构',
                    cols: [
                        {label : '名称', prop:'name'}, {label : '曾用名', prop:'address'}, {label : '统一社会信用代码', prop:'phone'},
                        {label : '注册号', prop:'code'}, {label : '核准日期', prop:'bank'},
                        {label : '登记机关', prop:'account'}, {label : '登记状态', prop:'account'}
                    ],
                    data: []
                },
                {
                    title: '年报',
                    cols: [
                        {label : '报送年度', prop:'name'}, {label : '营业总收入', prop:'address'}, {label : '净利润', prop:'phone'},
                        {label : '负债总额', prop:'code'}, {label : '资产总额', prop:'bank'},
                        {label : '纳税总额', prop:'account'}
                    ],
                    data: []
                },
                {
                    title: '工商变更',
                    cols: [
                        {label : '变更日期', prop:'name'}, {label : '变更事项', prop:'address'}, {label : '变更后', prop:'phone'}
                    ],
                    data: []
                }
            ]
        }
    },
    methods: {
        preview(row) {

        },
        del(row) {
            
        }
    }
}
</script>
<style lang="scss">
.del {
    color: #409eff
}
.preview {color: #E64545}
</style>
